package yxy.cherry.battle.module.selector;

import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.Team;
import yxy.cherry.battle.module.affix.Buff.BuffStateType;

import java.util.HashSet;
import java.util.Set;

@TargetSelectorType(Type = 55)
public class TargetSelector_55_麻痹 extends TargetSelector {

	@Override
	public Set<Fighter> target(Fighter actor, Team team, int param1, int param2) {
		HashSet<Fighter> set = new HashSet<Fighter>();
		for (Fighter fighter : team.get活人()) {
			if (fighter.isBuffState(BuffStateType.麻痹状态)) {
				set.add(fighter);
			}
		}
		return randomTarget(set, param1, param2);
	}
}
